<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=uft-8" />
    <meta name="viewport"   content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>塑料报价</title>
    <link href="/res/offer/mobadmin/css/common.css" rel="stylesheet" type="text/css" />
    <style>
        .baojiaList{ background:#fff;}
        .baojiaItem{ height: 1.826rem;line-height: 1.6rem;position: relative;color:#666;border-bottom: 1px solid #efefef;}
        .baojiaTxt{ margin-left:1.152rem;font-size:0.608rem; }
        .baojiaNub{ font-size:0.521rem;}
        .detailLink{ position: absolute;top:0rem;right: 0rem;padding-right:0.6rem;font-size:0.608rem;color:#2f8aff;line-height: 1.826rem;}
        .baojiaNub{ margin-left: 0.8rem;}
        .baojiaItem:before{
            position: absolute;
            top:0.7rem;left: 0.5rem;
            content:" ";
            width:0.4rem;height: 0.4rem;background: #666666;border-radius: 50%;
        }
        
        
        
        .detailTable{ width:100%;background: #fff;border-collapse: collapse; }
        .detailTable th{ border-bottom: 0.652rem solid #f2f2f2;font-size:0.608rem;color:#999999;height: 1.956rem;line-height: 1.956rem;}
        .detailTable td{text-align: center; font-size:0.608rem;height: 1.826rem;/*line-height: 1.826rem;*/border-bottom: 1px solid #efefef; }
        .detailTable .firstTh{/* padding-left: 0.5rem;*/}
        .detailTable .col1{/* padding-left: 0.5rem;*/text-align: center;}
        .detailTable .col3{ color:#3291ff; /*padding-left: 0.6rem;*/ }
        .detailTable .col4{ color:#999;/*padding-left: 0.6rem;*/}
        .detailTable .danwei{ font-size:0.391rem; }
        .detailTable .col2{ /*padding-left: 0.5rem;*/}
        
        
        .baojiaInfo{ color:#999999;font-size:0.608rem;background: #fff;margin-top:0.63rem;padding:0.6rem 0rem; }
        .baojiaRow{ height: 1.4rem;line-height: 1.4rem; font-size: 0.652rem; }
        .baojiaRow .baojiaLeft{ float:left;width:3.8rem;position: relative;}
        .baojiaRow .baojiaLabel{ margin-left: 0.6rem; }
        .modifyInp{ display: none;}
        .baojiaStar{ position: absolute;color:#e34c59;top:0.1rem;left: 0.5rem; }
        
        
        .modifyBtn{ background: #5ba3ff;color:#fff;width:3.04rem;height: 1.304rem;line-height: 1.304rem; float: right;text-align: center;font-size:0.608rem; border-radius: 0.2rem;margin-right:0.6rem;}
        .txt_view{
            margin-right: 0.652rem;
            float:right;
            color: #646464;
        }
        .txt_view em{
            font-style: normal;
            color: #2f8aff;
        }
        .baojiaIcon{
                display: inline-block;
                width: 0.782rem;
                height: 0.782rem;
                vertical-align: middle;   
        }
    </style>
</head>
<body>
    <div class="">
        <div class="commonTil">
            {if $result[head]['company_name']=='' }{$result[head]['contact']}的{else}{$result[head]['company_name']}的{/if}报价单
            <span class="txt_view">(被浏览<em>{$result[head]['views']}次</em>)</span>
        </div>
        <div class="">
            <table class="detailTable">
                <thead>
                    <tr>
                        <th width="12%" class="firstTh">序号</th>
                        <th width="50%">品名/厂家/牌号</th>
                        <th width="20%">单价<span class="danwei">(元/吨)</span></th>
                        <th width="18%">数量<span class="danwei">(吨)</span></th>
                    </tr>
                </thead>
                <tbody>
                {if empty($result['items'])}
                <tr>
                    <td class="no-records text-center">{$noRecords}</td>
                </tr>
                {/if}
                {loop $result['items'] $k $value}
                <tr>
                    <td class="col1">{$k+1}</td>
                    <td class="col2">{$value[product_name]}/{$value[factory_name]}/{$value[brand_name]}</td>
                    <td class="col3"><?php echo del0($value[sales_price])?></td>
                    <td class="col4"><?php echo del0($value[quantity])?></td>
                </tr>
                {/loop}

                </tbody>
            </table>
        </div>
        <!--
        <div class="baojiaInfo">
            <div class="baojiaRow">
                <div class="baojiaLeft">
                    
                    <span class="baojiaLabel">日期：</span>
                </div>
                <div class="baojiaRight">
                    <span ><?php echo date('Y/m/d H:i',strtotime($result[head]['addtime']))?></span>

                    <input type="text" class="modifyInp" value="{$result[head]['addtime']}"/>
                </div>
            </div>
            <div class="baojiaRow">
                <div class="baojiaLeft">
                    <span class="baojiaLabel">联系人：</span>
                </div>
                <div class="baojiaRight">
                    <span class="">{$result[head]['contact']}</span>
                    <input type="text" class="modifyInp" value="{$result[head]['contact']}"/>
                </div>
            </div>
            <div class="baojiaRow">
                <div class="baojiaLeft">
                    <span class="baojiaLabel">号码：</span>
                </div>
                <div class="baojiaRight">
                    <a href="tel:{$result[head]['contact_mobile']}" class="modifyTxt bluePhone">{$result[head]['contact_mobile']}</a>
                    <input type="text" class="modifyInp" value="{$result[head]['contact_mobile']}"/>
                </div>
            </div>
            <?php if($result[head]['company_name']!=''){ ?>

                <div class="baojiaRow">
                    <div class="baojiaLeft">
                        <span class="baojiaLabel">公司名称：</span>
                    </div>
                    <div class="baojiaRight">
                        <span class="">{$result[head]['company_name']}</span>
                        <input type="text" class="modifyInp" value="{$result[head]['company_name']}"/>
                    </div>
                </div>

            <?php } ?>

            <?php if($result[head]['delivery_place']!=''){ ?>
               <div class="baojiaRow">
                   <div class="baojiaLeft">
                       <span class="baojiaLabel">交货地：</span>
                   </div>
                   <div class="baojiaRight">
                       <span class="">{$result[head]['delivery_place']}</span>
                       <input type="text" class="modifyInp" value="{$result[head]['delivery_place']}"/>
                   </div>
               </div>
            <?php } ?>
        </div>
        -->
        
        <div class="blank30"></div>
        <div class="baojiaDetail">
            <div class="baojiaRow">
                <span class="baojiaLabel baojiaIcon bjDateIcon"></span>
                <span ><?php echo date('Y/m/d H:i',strtotime($result[head]['addtime']))?></span>
            </div>
            <div class="baojiaRow">
                <span class="baojiaLabel baojiaIcon bjContactIcon"></span>
                <span class="">{$result[head]['contact']}</span>
            </div>
            <div class="baojiaRow">
                <span class="baojiaLabel baojiaIcon bjPhoneIcon"></span>
                <a href="tel:{$result[head]['contact_mobile']}" class="bluePhone">{$result[head]['contact_mobile']}</a>
                
            </div>
            {if $result[head]['contact_mobile2']!=''}
            <div class="baojiaRow">
                <span class="baojiaLabel baojiaIcon bjPhone2Icon"></span>
                <a href="tel:{$result[head]['contact_mobile2']}" class="bluePhone">{$result[head]['contact_mobile2']}</a>
            </div>
            {/if}
            <?php if($result[head]['company_name']!=''){ ?>

            <div class="baojiaRow">
                <span class="baojiaLabel baojiaIcon bjCompanyIcon"></span>
                <span class="">{$result[head]['company_name']}</span>
            </div>
            <?php } ?>

            <?php if(trim($result[head]['delivery_place'])!=''){ ?>

               <div class="baojiaRow">
                   <span class="baojiaLabel baojiaIcon bjAddrIcon"></span>
                   <span class="">{$result[head]['delivery_place']}</span>
               </div>
            <?php } ?>
        </div>
        
        <div class="blank30"></div>
        <div class="blank30"></div>
        <div class="blank30"></div>
        <div class="blank30"></div>
        <div class="blank30"></div>
        <div class="botBtn">
            <a href="/mobadmin/offer/add">我也要报价</a>
        </div>
    </div>
</body>
</html>
{include mobadmin.inc.statistics}
